package com.atguigu.spzx.manager.mapper;

import com.atguigu.spyx.model.common.com.atguigu.spyx.model.entity.product.Product;
import com.atguigu.spyx.model.dto.system.ProductDto;
import com.atguigu.spyx.model.dto.system.ProductSaveDto;
import com.atguigu.spyx.model.vo.system.ProductVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LT
 * @create 2023-11-10-19:36
 */
@Mapper
public interface ProductMapper {

    List<ProductVo> findAll(ProductDto productDto);

    void save(Product product);

    ProductSaveDto getById(Long id);

    void updateById(Product product);

    void deleteById(Long id);

    void updateAuditStatus(@Param("id") Long id,@Param("auditStatus") Integer auditStatus);

    void updateStatus(@Param("id") Long id,@Param("status")Integer status);
}
